import { getAll } from "@/api/system/user";

var userData = [{}]

const requestTypeData = [
  { value: 0, label: "请假" },
  { value: 1, label: "病假" },
  { value: 2, label: "调休" },
  { value: 3, label: "加班" },
];

const auditData = [
  { value: 0, label: "待审核" },
  { value: 1, label: "审核通过" },
  { value: 2, label: "审核不通过" },
];
getAll().then((res) => {
  userData = res.data.map((e: any) => {
    return {
      value: e.userName,
      label: e.userTrueName,
    };
  });
});
export { userData, requestTypeData, auditData };
